import React from "react";

import {Api} from "./api"; //api方法

import {connect} from "react-redux";

import {useNavigate} from "react-router-dom";

const Helloword = (props)=>{

    const navigate = useNavigate()

    return<>
        <div>{props.getHelloState}</div>
        <button onClick={()=>{
            navigate("/admin/product")

        }
        }>跳转</button>
    </>

}


export default connect(state=>{
    return {
        getHelloState: state.getIn(["helloword", "test"])
    }
})(Helloword)